@layout("/common/_container.html"){
<link rel="stylesheet" href="${ctxPath}/static/layui/css/layui.css" media="all">
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>创建消息</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <form class="layui-form" action="" id="pushForm">
                        <div class="layui-form-item">
                            <label class="layui-form-label" style="width: 100px;">应用名称</label>
                            <div class="layui-input-block" style="width: 200px;">
                                <select id="appCode" name="appCode"  style="width: 200px;">
                                    <option>请选择</option>
                                </select>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">标题</label>
                            <div class="layui-input-block">
                                <input id="title" type="text" name="title" required  lay-verify="required"
                                       placeholder="请输入标题，最多30个字" autocomplete="off" class="layui-input"
                                       style="width: 300px;">
                            </div>
                        </div>
                        <div class="layui-form-item layui-form-text">
                            <label class="layui-form-label" style="width: 100px;">消息内容</label>
                            <div class="layui-input-block">
                                <textarea id="content" name="content" required lay-verify="required" placeholder="请输入内容，最多100个字"
                                          class="layui-textarea" style="width: 300px;"></textarea>
                            </div>
                        </div>
                        <div class="layui-form-item layui-form-text">
                            <label class="layui-form-label" style="width: 100px;">自定义参数</label>
                            <div class="layui-input-block">
                                <div style="display: flex;flex-direction: row;">
                                    <textarea id="custom" name="custom" placeholder="输入格式:key1:value1,key2:value2"
                                          class="layui-textarea" style="width: 300px;"></textarea>

                                    <h5 style="color: red;margin-left: 20px;margin-top: 50px;">
                                        （用于接收通知时根据参数做自定义处理
                                        <br/>
                                        &nbsp;&nbsp;可用response.notification.request.content.userInfo获取到
                                        <br/>
                                        &nbsp;&nbsp;格式为：key:value, key2:value2）
                                    </h5>
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit lay-filter="formPushMsg">立即推送</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/layui/layui.js" charset="utf-8"></script>
<script src="${ctxPath}/static/modular/push_msg/pushMsg/pushMsg_info.js"></script>
@}
